package com.job.springsea.work0709;

import java.util.Scanner;

/**
 * @author 于春海
 * @version 1.0
 * @since 2022-07-09 21:24:17
 */
public class Circle {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入n:");
        int n=sc.nextInt();
        int[][] arr=new int[n][n];
        for (int row = 0; row < n; row++) {
            for (int col = 0; col <=row ; col++) {
                if(col==0||row==col){
                    arr[row][col]=1;
                    System.out.print(arr[row][col]+"\t");
                }else{
                    arr[row][col]=arr[row-1][col-1]+arr[row-1][col];
                    System.out.print(arr[row][col]+"\t");
                }
            }
            System.out.println();
        }
    }


}